<?php
/**
 * Created by PhpStorm.
 * User: Mio
 * Date: 2017/10/13
 * Time: 11:27
 */

namespace app\index\model;


use think\Model;

class Channel extends Model
{
    /**
     * 获取分类信息
     * @author 姜伟
     * @param string $where where子句
     * @param string $fields 要获取的字段名
     * @return array 商品基本信息
     * @todo 根据where查询条件查找商品表中的相关数据并返回
     */
    public function getChannelInfo($where, $fields = '')
    {
        return $this->field($fields)->where($where)->find()->toArray();
    }
}